<?php $messages = $this->flash->getMessages(); if (!empty($messages)): ?>

  <div class="flashMessages">

    <?php foreach ($messages as $message): ?>
        <p><?php echo $message; ?></p>
    <?php endforeach; ?>
  
  </div> <!-- /flashMessages -->

<?php endif; ?>